package com.xl6667.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xl6667.domain.ResponseResult;
import com.xl6667.domain.dto.AddArticle;
import com.xl6667.domain.dto.HotArticleDto;
import com.xl6667.domain.entity.Article;

import java.util.List;

/**
* @author 熊磊
* @description 针对表【sg_article(文章表)】的数据库操作Service
* @createDate 2024-03-13 18:13:36
*/
public interface ArticleService extends IService<Article> {

    List<HotArticleDto> hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticle(Integer id);

    ResponseResult putUpdateViewCount(Long id);

    ResponseResult getArticleList(Integer pageNum, Integer pageSize, String title, String content);

    ResponseResult delArticleList(List<Long> ids);

    ResponseResult addArticle(AddArticle addarticle);

    ResponseResult getSysArticle(Long id);

    ResponseResult putArticle(AddArticle addArticle);

    ResponseResult searchArticle(Integer pageNum, Integer pageSize,String search);

    ResponseResult changeArticleStatus( Article article );
}
